#define  _CRT_SECURE_NO_WARNINGS 1

#include"stack.h"

void test1()
{
	ST s;
	STInit(&s);
	STPush(&s, 1);
	STPush(&s, 2);
	STPush(&s, 3);
	STPush(&s, 4);
	STPush(&s, 5);

	printf("%d\n", STSize(&s));

	while (!STEmpty(&s))
	{
		printf("%d ", STTop(&s));
		STPop(&s);
	}

	STDestroy(&s);
}


int main()
{
	test1();

	return 0;
}